#include <iostream>

using namespace std;

int main(int argc, const char * argv[])

{
    
    /* task 1 */
 /*
	double a,b,c;
    
    cout << "Insert A: " << endl;
    cin >> a;
	cout << "Insert B: " << endl;
    cin >> b;
	cout << "Insert C: " << endl;
    cin >> c;
    
    if (c > a) {
        if (c > b) {
            cout << "C is not between A and B" << endl;
        }
        else {
            cout << "C is  between A and B" << endl;
        }
    }
    else {
        
        if (c > b) {
            cout << "C is  between A and B" << endl;
        }
        else {
            cout << "C is not between A and B" << endl;
        }
        
    }
    

*/


/* task 2 */

/*
double a, b;

cout << "Insert A: " << endl;
cin >> a;
cout << "Insert B: " << endl;
cin >> b;

cout << "Sum: " << a + b << endl;
cout << "Difference: " << a - b << endl;
cout << "Multiplication: " << a * b << endl;
if (b != 0) {
	cout << "Modulus: " << (int)a % int(b) << endl;
	cout << "DevideInt: " << (int)a / (int)b << endl;
}
else {
	cout << "You can't devide 0 " << endl ;
}

*/

/* task 3 */

/*
double a, b, temp;

cout << "Insert A: " << endl;
cin >> a;
cout << "Insert B: " << endl;
cin >> b;
    
    temp = a;
    a=b;
    b=temp;
    cout << a << "," << b << endl ;
*/


/* task 4 */

/*

double a,b;

cout << "Insert A: " << endl;
cin >> a;
cout << "Insert B: " << endl;
cin >> b;

if (a > b) {
    cout << "Numbers in high row are :"  << b << "," << a << endl;
}
else {
    cout << "Numbers in high row are :"  << a << "," << b << endl;
}
    
*/


/* task 5 */


double a,b,c;

cout << "Insert A: " << endl;
cin >> a;
cout << "Insert B: " << endl;
cin >> b;
cout << "Insert C: " << endl;
cin >> c;

if ((a > b) && (a < c)) {
    cout << c << "," << a << "," << b << endl;
}
else {
    cout << b << "," << a << "," << c;
}
if ((b < a) && ( b > c)) {
    cout << a << "," << b << "," << c << endl;
}
else {
    cout << a << "," << c << "," << b << endl;
    if ((c > a) && (c > b)) {
	    cout << c << "," << b << "," << a << endl;
	}
    else {
	    cout << b << "," << c << "," << a << endl;
	}
}



/* Á‡‰‡˜‡ 6 */

/*
double a,b,c,temp;

cout << "Insert A: " << endl;
cin >> a;
cout << "Insert B: " << endl;
cin >> b;
cout << "Insert C: " << endl;
cin >> c;

    temp = a;
    a=b;
    b=c;
    c = temp;
    cout << a << "," << b << "," << c << endl;

*/

/* Á‡‰‡˜‡ 7 */

/*
double money;
int hour;
bool  iAmHealthy, canGoOut;

cout << "Insert Money: " << endl;
cin >> money;
cout << "Insert Hour: " << endl;
cin >> hour;


if (money < 0) {
    cout << "No such a sum" << endl;
    
    return 0;
}

if (hour < 0 || hour > 24) {
    cout << "No such a hour" << endl;
    
    return 0;
}


if (hour > 7 && hour < 22) {
    canGoOut = true;
    iAmHealthy = true;
}

if (iAmHealthy && canGoOut) {
    
    cout << "I will go out" << endl;
    
    
    if (money < 10 ) {
        cout << "I will have a cup of coffee" << endl;
    }
    else {
        cout << "I will go to the beach :)" << endl;
    }
    
}
else {
    cout << "I won't go out" << endl;
    
    if (money > 0 && canGoOut) {
        cout << "I will buy some pills" << endl;
    }
    else {
        cout << "I will have a cup of tea" << endl;
    }
}

*/

/* task 8 */

/*

int day, month, year;

cout << "Insert day: " << endl;
cin >> day;
cout << "Insert month : " << endl;
cin >> month;
cout << "Insert year: " << endl;
cin >> year;


if (year > 0 && (day > 0 && day <= 31) && (month > 0 && month <= 12)) {
    switch (month) {
        case 1:
        case 3:
        case 5:
        case 7:
        case 8:
        case 10: {
            if (day < 31) {
                day++;
            }
            else {
                month++;
                day = 1;
            }
            break;
        }
        case 2: {
            if ((year % 4 == 0 && year % 100 != 0) || ((year % 4 == 0 && year % 400 == 0))) {
                
                if (day < 29) {
                    day++;
                }
                else {
                    month++;
                    day = 1;
                }
            }
            else {
                if (day < 28) {
                    day++;
                }
                else {
                    month++;
                    day = 1;
                }
            }
            break;
        }
        case 4:
        case 6:
        case 9:
        case 11: {
            if (day < 30) {
                day++;
            }
            else {
                month++;
                day = 1;
            }
            break;
        }
        case 12:{
            if (day < 31) {
                day++;
            }
            else {
                year++;
                month = 1;
                day = 1;
            }
            break;
        }
    }
    
    cout << "day " << day << " month " << month << " year " << year << endl;
}
else {
    cout << "not valid date!" << endl;
}

*/
    return 0;
}







